		function exit(){
			window.location.href="../../log_in.html";
		}
	 	$(function(){
		 	var username = getCookie("username");
		 	var role = getCookie("role");
		 	if(username==null){
		         window.location.href="../../log_in.html";
		     }
		 	var role_str = null;
		 	if(0 == role || "0" == role){
		 		role_str = "超级管理员";
		 	}else if(1 == role || "1" == role){
		 		role_str = "管理员";
		 	}
		 	$("#userName").html(username+"("+role_str+")");
	 	});